home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 July / 07_02.iso / software / xq-xsetup / files / setup.exe / {app} / plugins / XQ Voodoo Banshee 1.xpl < prev    next >
Text File  |  2001-02-16  |  2KB  |  75 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="3"
  4. "UIPATH"="Hardware\Video Cards\Voodoo Banshee"
  5. "NAME"="Direct3D Settings"
  6. "VERSION"="1.40"
  7. "OSVERSION"="10101"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Enable AntiAliasing in Direct3D Mode" 
  10. "TEXT 2"="Enable Overlay mode in Direct3D Mode"
  11. "TEXT 3"="Enable VSynch  in Direct3D Mode"
  12. "DESCRIPTION 1"="If "AntiAliasing" is enabled it will generally provide a better image."
  13. "DESCRIPTION 2"="If "Overlay mode" is enabled, the card displays a higher quality image. If disabled, increases speed but sacrifices display quality."
  14. "DESCRIPTION 3"="If "VSynch" is enabled, it will increase image quality.  Enabling this feature may help fix graphic distortions in some games."
  15. "DESCRIPTION 4"="NOTE: This plug-in performs only a DirectX check, so it will be enabled as soon as DirectX is installed on your computer. This means, this plug-in will also be enabled if you *DO NOT* have a Voodoo Banshee card. In this case, any changes will have no effect at all."
  16. "AUTHOR"="Xteq Systems"
  17. "CONTACTURL"="http://www.xteq.com"
  18. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  19. "COMMENT 1"="Thanks to Trevor for Voodoo Banshee settings."
  20. "COMMENT 2"="Thanks to X-Setup - FR [xsetup@ifrance.com] for the bug notice."
  21.  
  22.  
  23. sV1="HKLM\System\CurrentControlSet\Services\Class\Display\0001\D3D\SSTH3_ANTIALIAS" 'STR
  24. sV2="HKLM\System\CurrentControlSet\Services\Class\Display\0001\D3D\SSTH3_OVERLAYMODE" 'STR
  25. sV3="HKLM\System\CurrentControlSet\Services\Class\Display\0001\D3D\SSTH3_SWAPINTERVA" 'STR
  26. Sub Plugin_Initialize 
  27.     i=RegReadValue(sV1)
  28.     if i="1" then SetUiElement 1,true
  29.  
  30.     i=RegReadValue(sV2)
  31.     if i="1" then SetUiElement 2,true
  32.  
  33.     i=RegReadValue(sV3)
  34.     if i="1" then SetUiElement 3,true
  35. End Sub
  36.  
  37.  
  38. Sub Plugin_CheckData(ElementIndex)
  39. End Sub
  40.  
  41.  
  42.  
  43. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  44.  b=GetUIElement(1)
  45.  if b=true then
  46.     i=1
  47.  else
  48.     i=0
  49.  end if
  50.  Call RegWriteValue(sV1,i,1)
  51.  
  52.  b=GetUIElement(2)
  53.  if b=true then
  54.     i=1
  55.  else
  56.     i=0
  57.  end if
  58.  Call RegWriteValue(sV2,i,1)
  59.  
  60.  b=GetUIElement(3)
  61.  if b=true then
  62.     i=1
  63.  else
  64.     i=0
  65.  end if
  66.  Call RegWriteValue(sV3,i,1)
  67.  
  68.  
  69.  Call Restart()
  70. End Sub
  71.  
  72.  
  73. Sub Plugin_Terminate 
  74. End Sub
  75.